
<!DOCTYPE html>
<html >
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet"  href="style7.css">
   <script type="text/javascript" src="../jquery/jquery.min.js"></script>
  <link href="<?php echo base_url();?>/public/css/bootstrap.min.css" rel="stylesheet">
  <link href="<?php echo base_url();?>/public/css/bootstrap-theme.min.css" rel="stylesheet">
  <script type="text/javascript">

    $(function(){
    $(".del").click(function(){
      if(!confirm("是否删除?")){
      return false;
     }

    })
     })
  </script>
  <style type="text/css">
   *{
    font-family: Microsoft Yahei
   }
  </style>
   <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
  <style type="text/css">
  .container{
    overflow: hidden;
  }
  #main{
     margin-top: 10px;
  }

  </style>
</head>

<body>

<?php $this->load->view('admin/Nav') ?>



	<div class="container">

<h1>分类<small>标题</small><a href="<?php echo site_url("admin/Catalog/add/")?> " class="btn btn-primary pull-right">添加</a></h1>
<!--  <h3><a href="catalog_add.php " class="pull-left btn btn-primary  ">添加</a></h3> -->
 
   <div  id="main"  >
     <table  class="table table-bordered " >
   	   <tr>
   	   	 <td id="bt"><b>id</b></td>
         <td id="cj"><b>名称</b></td>
         <td id="cz"><b>操作</b></td>

         
   	   </tr>

       <?php  foreach ($catalogs as  $ca) {
       
        ?>
   	    <tr>
         <td width="500px"><?php  echo $ca->id ?></td>
       
        <td width="160px"><?php  echo $ca->name ?></td>
       
        <td width="300px">
         
         <a class="btn btn-warning btn-xs" href="<?php echo site_url("admin/Catalog/edit/".$ca->id)?>">修改</a> 
         <a class="btn btn-danger btn-xs" href="<?php echo site_url("admin/Catalog/delete/".$ca->id)?>">删除</a></td>


   	   </tr>
   	
      <?php   } ?> 

   </table>
  

   </div> 


</div>





</body>
</html>